﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Drawing;

/// <summary>
/// Summary description for CustomControl
/// </summary>
public class CustomControl
{
    public enum PositionControl { TOP_LEFT  = 1,TOP_CENTER	= 2, TOP	=2,TOP_RIGHT	=3,LEFT_CENTER	=4,LEFT_TOP=	5,LEFT	=5,LEFT_BOTTOM=	6,RIGHT_TOP	=7,RIGHT	=7,RIGHT_CENTER	=8,RIGHT_BOTTOM	=9,BOTTOM_LEFT=	10,BOTTOM_CENTER = 	11};

    public delegate void EventHandlerForControl();
    public event EventHandlerForControl Clicked;
    public void OnClicked()
    {
        if(Clicked != null)
            Clicked();
    }
    #region Properties
  
    public PositionControl position; 
    public string BackgroundColor;
    public string BorderStyle;
    public string BorderWidth;
    public string Cursor;
    public string TextAlign;
    public string Title;

    public  string FontFamily;
    public string FontSize;
    public string PaddingLeft;
    public string PaddingRight;
    public string InnerHTML;
    #endregion

	public CustomControl()
	{
		//
		// TODO: Add constructor logic here
		//
	}
}